

public class AccountController {
	
	Account targetAccount;
	
	public boolean createAccount(String name,String password, int level){
		if(name != null && level != 0){
			targetAccount = new Account(name,password,level);
			DatabaseSupport.putAccount(targetAccount);
			return true;
		}
		return false;
	}
	
	public boolean removeAccount(String name){
		
		if(name != null){
			DatabaseSupport.removeAccount(name);
			return true;		//need database support methods.
		}
		
		return false;
	}
	
	public boolean editAccount(String name, int level){
		return DatabaseSupport.editAccount(level,name);
	}
}
